Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update yml and interface #12

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Update yml and interface #12

wants to merge 6 commits into from

Conversation

artursilva0
Copy link
Contributor

Update yml and interface to add a new feature which allows temperature compensation on the flow rate for proportional valves with temperature sensors (back compatibility assured). Reserved registers were renamed and used for the new registers added, so I don't think that there is anything breaking, but please confirm.

Copy link
Contributor

@MicBoucinha MicBoucinha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Generators/Generators.csproj Outdated Show resolved Hide resolved
device.yml Outdated Show resolved Hide resolved
device.yml Show resolved Hide resolved
Copy link
Member

@bruno-f-cruz bruno-f-cruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for the extra line in the cproj.

@MicBoucinha
Copy link
Contributor

The requested changes were updated in the latest commits. LGTM! @bruno-f-cruz do you agree?

@@ -17,7 +17,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageOutputPath>..\bin\$(Configuration)</PackageOutputPath>
<TargetFrameworks>net462;netstandard2.0</TargetFrameworks>
<VersionPrefix>0.1.0</VersionPrefix>
<VersionPrefix>0.1.1</VersionPrefix>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<VersionPrefix>0.1.1</VersionPrefix>
<VersionPrefix>0.2.0</VersionPrefix>

Feels like this should be a bump to the minor version since new registers and features were added, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rational was based on @bruno-f-cruz comment: " I think that prior to 1.x, we tend to use the patch from semver to indicate backward compatible. If these are indeed fully backwards compatible i would tag this release as 0.1.1."

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm my bad I think I am confused. I don't know why I thought this was the agreement during the 0.x but maybe I am confused with the yml firmware version that only allows 2 numbers to be represented. Sorry!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds great, in that case @artursilva0 changing this version to 0.2.0 and the name of the calibration register are the only two changes needed, everything else LGTM!

type: U8
access: Read
description: Enable flow adjustment based on the temperature calibration.
UserTemperatureCalibration:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between TemperatureValue and UserTemperatureCalibration? Is this a reference value used to establish the adjustment automatically?

I am not very fond of adding the general term User here, since a "user" is very vaguely defined (and could be automated away in the future). It would be more helpful to describe here what exactly is expected this value to contain, e.g. if this is a reference value, we might consider changing this to ReferenceTemperatureValue and the description to more explicitly indicate what is the meaning of the values provided here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TemperatureValue is the actual value of the device temperature
UserTemperatureCalibration is used for calibration purposes only if the user decides to calibrate the device. This temperature calibration value is the value at which the calibration was done.

User is used to be consistent with former register description used for the calibration of the device, when performed by the user (the device always contains the factory calibration values, so User is used to distinguish this).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TemperatureCalibrationValue would be more clear?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TemperatureCalibrationValue would be more clear?

Definitely, that would be great if it works!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be noted that adding the word User would make some sense given the current interface (

Channel0UserCalibration: &channel0UserCalibration
).

Should we break this while we are still in 0.x?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I've double checked and this register is shared for both the user and the factory calibration, so in the end TemperatureCalibrationValue seems more appropriated. Do you agree @bruno-f-cruz , so that I can make the mods and merge these files?

device.yml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants